<?php
namespace Model;

use Model\Factory\TableGatewayFactory;

class BlockClass extends AbstractModel
{
    public $id;
    public $program_code;
    public $name;
    public $description;
    public $created_date;
    public $created_by;
    public $active;




    public function getAllBlockInstance()
    {
        $blockInstanceTable = TableGatewayFactory::getBlockInstanceTable();
        return $blockInstanceTable->getByColumn('block_class_id', $this->id);
    }
}
